package com.fms.controller;

import com.fms.result.ResultData;
import com.fms.service.ProcurementService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/inbound")
@RequiredArgsConstructor
public class InboundController {
    private final ProcurementService procurementService;

    @GetMapping("/getInbounds")
    public ResultData getInbounds() {
        ResultData resultData = procurementService.getInbounds();
        return resultData;
    }
}
